﻿using ArtheaEngine;

namespace ArtheaServer.Commands
{
    public class SayCommand : Command
    {
        public SayCommand()
            : base("say", "Allows you to speak to the room.")
        {
            Aliases.Add("'");
        }

        public override void Execute(Character ch, Argument argument)
        {
            if (argument.IsEmpty())
            {
                ch.WriteLine("Say what?");
                return;
            }

            ch.Act(ActType.CHAR, "~gYou say '~G{0}~g'~x", argument);
            ch.Act(ActType.WORLD, "~g{0} says '~G{1}~g'~x", ch, argument);
        }
    }
}